<!--[pnajaxheader modname=crpCalendar filename=crpcalendar.js noscriptaculous=true nobehaviour=true]-->
<!--[include file="crpcalendar_admin_menu.htm"]-->
<div class="z-admincontainer">
    <div class="z-adminpageicon"><!--[pnimg modname='core' src='configure.gif' set='icons/large' __alt='Settings' ]--></div>
    <h2><!--[gt text="Settings"]--></h2>
    <form class="z-form" action="<!--[pnmodurl modname="crpCalendar" type="admin" func="updateconfig"]-->" method="post" enctype="application/x-www-form-urlencoded">
        <div>
            <input type="hidden" name="authid" value="<!--[insert name='generateauthkey' module='crpCalendar']-->" />
            <fieldset>
                <legend><!--[gt text="General"]--></legend>
                <div class="z-formrow">
                    <label for="crpcalendar_enablecategorization"><!--[gt text="Enable categorization"]--></label>
                    <input id="crpcalendar_enablecategorization" type="checkbox" name="enablecategorization"<!--[if $enablecategorization]--> checked="checked"<!--[/if]--> />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_itemsperpage"><!--[gt text="Items per page"]--></label>
                    <input id="crpcalendar_itemsperpage" type="text" name="itemsperpage" size="3" value="<!--[$itemsperpage|pnvarprepfordisplay]-->" />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_file_dimension"><!--[gt text="Max upload image size (Bytes)"]--></label>
                    <input id="crpcalendar_file_dimension" type="text" name="file_dimension" maxlength="6" size="7" value="<!--[$file_dimension|pnvarprepfordisplay]-->" />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_document_dimension"><!--[gt text="Max upload document size (Bytes)"]--></label>
                    <input id="crpcalendar_document_dimension" type="text" name="document_dimension" maxlength="6" size="7" value="<!--[$document_dimension|pnvarprepfordisplay]-->" />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_notification"><!--[gt text="Notification for user's creation (none if empty)"]--></label>
                    <input id="crpcalendar_notification" type="text" name="crpcalendar_notification" maxlength="64" size="32" value="<!--[$crpcalendar_notification|pnvarprepfordisplay]-->" />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_enable_partecipation"><!--[gt text="Enable user's participation to events"]--></label>
                    <input id="crpcalendar_enable_partecipation" type="checkbox" name="enable_partecipation"<!--[if $enable_partecipation]--> checked="checked"<!--[/if]--> />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_mandatory_description"><!--[gt text="Mandatory event description"]--></label>
                    <input id="crpcalendar_mandatory_description" type="checkbox" name="mandatory_description"<!--[if $mandatory_description]--> checked="checked"<!--[/if]--> />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_submitted_status"><!--[gt text="Initial status for events submitted by users"]--></label>
                    <select id="crpcalendar_submitted_status" name="submitted_status">
                        <option value="A"<!--[if $submitted_status eq 'A']--> selected="selected"<!--[/if]-->><!--[gt text="Active"]--></option>
                        <option value="P"<!--[if $submitted_status eq 'P']--> selected="selected"<!--[/if]-->><!--[gt text="Pending"]--></option>
                        <option value="R"<!--[if $submitted_status eq 'R']--> selected="selected"<!--[/if]-->><!--[gt text="Rejected"]--></option>
                    </select>
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_multiple_insert"><!--[gt text="Use multiple dates for admin's creation"]--></label>
                    <input id="crpcalendar_multiple_insert" type="checkbox" name="multiple_insert"<!--[if $multiple_insert]--> checked="checked"<!--[/if]--> />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_weekday_start"><!--[gt text="Week starts on"]--></label>
                    <select id="crpcalendar_weekday_start" name="crpcalendar_weekday_start">
                        <option value="1"<!--[if $crpcalendar_weekday_start eq '1']--> selected="selected"<!--[/if]-->><!--[gt text="Monday"]--></option>
                        <option value="0"<!--[if $crpcalendar_weekday_start eq '0']--> selected="selected"<!--[/if]-->><!--[gt text="Sunday"]--></option>
                    </select>
                </div>
            </fieldset>
            <fieldset>
                <legend><!--[gt text="Visualization"]--></legend>
                <div class="z-formrow">
                    <label for="crpcalendar_theme"><!--[gt text="crpCalendar theme"]--></label>
                    <!--[html_options options=$theme_options id=crpcalendar_theme name=crpcalendar_theme selected=$crpcalendar_theme]-->
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_start_year"><!--[gt text="Calendar start Year"]--></label>
                    <input id="crpcalendar_start_year" type="text" name="crpcalendar_start_year" maxlength="4" size="7" value="<!--[$crpcalendar_start_year|pnvarprepfordisplay]-->" />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_daylist_categorized"><!--[gt text="Categorized day-list view"]--></label>
                    <input id="crpcalendar_daylist_categorized" type="checkbox" name="daylist_categorized"<!--[if $daylist_categorized]--> checked="checked"<!--[/if]--> />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_yearlist_categorized"><!--[gt text="Categorized year-list view"]--></label>
                    <input id="crpcalendar_yearlist_categorized" type="checkbox" name="yearlist_categorized"<!--[if $yearlist_categorized]--> checked="checked"<!--[/if]--> />
                    <em class="z-formnote"><!--[gt text="For available formats, see the PHP's strftime() documentation"]--></em>
                </div>
                <div class="z-formrow">
                    <label for="complete_date_format"><!--[gt text="Complete date format (date and time)"]--></label>
                    <input id="complete_date_format" type="text" name="complete_date_format" maxlength="24" size="32" value="<!--[$complete_date_format|pnvarprepfordisplay]-->" />
                </div>
                <div class="z-formrow">
                    <label for="only_date_format"><!--[gt text="Date format (only date)"]--></label>
                    <input id="only_date_format" type="text" name="only_date_format" maxlength="24" size="32" value="<!--[$only_date_format|pnvarprepfordisplay]-->" />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_subcategory_listing"><!--[gt text="Show sub-categories events when watching a category"]--></label>
                    <input id="crpcalendar_subcategory_listing" type="checkbox" name="subcategory_listing"<!--[if $subcategory_listing]--> checked="checked"<!--[/if]--> />
                </div>
            </fieldset>
            <fieldset>
                <legend><!--[gt text="Images"]--></legend>
                <div class="z-formrow">
                    <label for="crpcalendar_gd_version"><!--[gt text="GD Library"]--></label>
                    <div>
                        <input id="crpcalendar_gd_version" class="readonly" type="text" name="gd_version" disabled="disabled" size="32" value="<!--[$gd_version.string|pnvarprepfordisplay]-->" />
                        <!--[if $gd_version.value >= 2]-->
                        <!--[pnimg modname='core' src='button_ok.gif' set='icons/extrasmall'   __alt="OK" __title="OK"]-->
                        <!--[else]-->
                        <!--[pnimg modname='core' src='editdelete.gif' set='icons/extrasmall'   __alt="Cancel" __title="Cancel"]-->
                        <!--[/if]-->
                    </div>
                </div>
                <div class="z-formrow z-hide" id="crpcalendar_use_browser">
                    <label><!--[gt text="GD Library requirement failed"]--></label>
                    <input type="hidden" name="crpcalendar_use_gd" value="0" />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_use_gd"><!--[gt text="crpCalendar use GD Library"]--></label>
                    <input id="crpcalendar_use_gd" type="checkbox" name="crpcalendar_use_gd"<!--[if $crpcalendar_use_gd]--> checked="checked"<!--[/if]--> />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_userlist_image"><!--[gt text="Show thumbnails in user list"]--></label>
                    <input id="crpcalendar_userlist_image" type="checkbox" name="crpcalendar_userlist_image"<!--[if $crpcalendar_userlist_image]--> checked="checked"<!--[/if]--> />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_image_width"><!--[gt text="Event image width"]--></label>
                    <input id="crpcalendar_image_width" type="text" name="image_width" maxlength="3" size="4" value="<!--[$image_width|pnvarprepfordisplay]-->" />
                </div>
                <div class="z-formrow">
                    <label for="userlist_width"><!--[gt text="User list thumbnail width"]--></label>
                    <input id="userlist_width" type="text" name="userlist_width" maxlength="3" size="4" value="<!--[$userlist_width|pnvarprepfordisplay]-->" />
                </div>
            </fieldset>
            <fieldset>
                <legend><!--[gt text="Other modules"]--></legend>
                <div class="z-formrow">
                    <!--[if pnModAvailable('locations')]--><!--[assign var="locations_avail" value="1"]--><!--[/if]-->
                    <label for="crpcalendar_enable_locations"><!--[gt text="Enable Locations"]--></label>
                    <input id="crpcalendar_enable_locations" type="checkbox" name="enable_locations"<!--[if $enable_locations]--> checked="checked"<!--[/if]--> />
                </div>
                <div class="z-formrow">
                    <!--[if pnModAvailable('formicula')]--><!--[assign var="formicula_avail" value="1"]--><!--[/if]-->
                    <label for="crpcalendar_enable_formicula"><!--[gt text="Enable formicula"]--></label>
                    <input id="crpcalendar_enable_formicula" type="checkbox" name="enable_formicula"<!--[if $enable_formicula]--> checked="checked"<!--[/if]--> />
                </div>
            </fieldset>
            <fieldset>
                <legend><!--[gt text="PermaLinks"]--></legend>
                <div class="z-formrow">
                    <label for="crpcalendar_addcategorytitletopermalink"><!--[gt text="Add category title to PermaLink"]--></label>
                    <input id="crpcalendar_addcategorytitletopermalink" type="checkbox" name="addcategorytitletopermalink"<!--[if $addcategorytitletopermalink]--> checked="checked"<!--[/if]--> />
                </div>
            </fieldset>
            <fieldset>
                <legend><!--[gt text="crpCalendar feed"]--></legend>
                <div class="z-formrow">
                    <label for="crpcalendar_enable_rss"><!--[gt text="Enable RSS feed"]--></label>
                    <input id="crpcalendar_enable_rss" type="checkbox" name="crpcalendar_enable_rss"<!--[if $crpcalendar_enable_rss]--> checked="checked"<!--[/if]--> />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_show_rss"><!--[gt text="Display link to RSS feed"]--></label>
                    <input id="crpcalendar_show_rss" type="checkbox" name="crpcalendar_show_rss"<!--[if $crpcalendar_show_rss]--> checked="checked"<!--[/if]--> />
                </div>
                <div class="z-formrow">
                    <label for="crpcalendar_rss"><!--[gt text="Feed format"]--></label>
                    <div id ="crpcalendar_rss">
                        <input id="crpcalendar_rss_1" type="radio" name="crpcalendar_rss" value="rss1"<!--[if $crpcalendar_rss eq "rss1"]--> checked="checked"<!--[/if]--> />
                        <label for="crpcalendar_rss_1"><!--[gt text="RSS 1.0"]--></label>
                        <input id="crpcalendar_rss_2" type="radio" name="crpcalendar_rss" value="rss2"<!--[if $crpcalendar_rss eq "rss2"]--> checked="checked"<!--[/if]--> />
                        <label for="crpcalendar_rss_2"><!--[gt text="RSS 2.0"]--></label>
                        <input id="crpcalendar_rss_atom" type="radio" name="crpcalendar_rss" value="atom"<!--[if $crpcalendar_rss eq "atom"]--> checked="checked"<!--[/if]--> />
                        <label for="crpcalendar_rss_atom"><!--[gt text="ATOM"]--></label>
                    </div>
                </div>
            </fieldset>

            <!--[pnmodcallhooks hookobject=module hookaction=modifyconfig module=crpCalendar]-->
            <div class="z-formbuttons">
                <!--[pnbutton src='button_ok.gif' set='icons/small' __alt="Update Configuration" __title="Update Configuration"]-->
                <a href="<!--[pnmodurl modname=crpCalendar type=admin func=view]-->"><!--[pnimg modname='core' src='button_cancel.gif' set='icons/small'   __alt="Cancel" __title="Cancel"]--></a>
            </div>
        </div>
    </form>

    <script type="text/javascript">
        Event.observe(window, 'load', function(){crpCalendarConfigInit('<!--[$gd_version.value]-->','<!--[$locations_avail]-->','<!--[$formicula_avail]-->');}, false);
    </script>

</div>